package $NAMESPACE.persistence.dao;

import com.ugeez.commons.mybatisplus.dao.EnhanceBaseMapper;
import $NAMESPACE.persistence.entity.UserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserRoleMapper extends EnhanceBaseMapper<UserRole> {

    UserRole selectByUserIdAndRole(@Param("userId") Long userId, @Param("role") String role);

    List<UserRole> selectByUserId(@Param("userId") Long userId);

}
